From e1b2203a90eaaf4c09f2d10bb9f3d5ea96d80b3b Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 19 Oct 2006 20:26:00 +0000 Subject: [PATCH] Obey local bounds in HSA reader. --- hsa_ndv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hsa_ndv.c b/hsa_ndv.c index 58a41e1cd..bb85c71c7 100644 --- a/hsa_ndv.c +++ b/hsa_ndv.c @@ -233,7 +233,7 @@ hsa_ndv_read(void) { char *bad; - buf[len] = 0; + buf[len-1] = 0; if (NULL != strstr(buf, "nver=1")) {//its the older format, not xml fseek(fd, 0, SEEK_SET); -- 2.30.2